const daoCommon=require('../utils/daoCommon');

const dao={
    /**
     * 存入验证码(有就修改没有就添加)
     * */
    UpdateVerification:async(data)=>{
        let sql=`insert into verification(Mobile,VerificationCode) values($Mobile,$VerificationCode) on DUPLICATE KEY UPDATE VerificationCode=$VerificationCode`;
        return await daoCommon.oneMethod(sql,data)
    }
};

module.exports=dao;
